home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / skelet_dance.swf / scripts / DefineButton2_26 / BUTTONCONDACTION on(keyPress Up).as
Encoding:
Text File  |  2006-09-05  |  847 b   |  40 lines

  1. on(keyPress "<Up>"){
  2.    ua = getProperty("/u1", _Y);
  3.    ub = getProperty("/u2", _Y);
  4.    uc = getProperty("/u3", _Y);
  5.    tellTarget("/up")
  6.    {
  7.       gotoAndPlay(2);
  8.    }
  9.    if("35" < ua and ua < "90")
  10.    {
  11.       tellTarget("/per3")
  12.       {
  13.          gotoAndPlay(2);
  14.       }
  15.       setProperty("/u1", _Y, "5050" + getProperty("/u1", _Y));
  16.       perf += "1";
  17.       defen += "100";
  18.    }
  19.    if("35" < ub and ub < "90")
  20.    {
  21.       tellTarget("/per3")
  22.       {
  23.          gotoAndPlay(2);
  24.       }
  25.       setProperty("/u2", _Y, "5050" + getProperty("/u2", _Y));
  26.       perf += "1";
  27.       defen += "100";
  28.    }
  29.    if("35" < uc and uc < "90")
  30.    {
  31.       tellTarget("/per3")
  32.       {
  33.          gotoAndPlay(2);
  34.       }
  35.       setProperty("/u3", _Y, "5050" + getProperty("/u3", _Y));
  36.       perf += "1";
  37.       defen += "100";
  38.    }
  39. }
  40.